package com.snow.useviewdemo.animation;

import android.os.Bundle;

import androidx.annotation.Nullable;

import com.snow.useviewdemo.R;
import com.snow.useviewdemo.base.BaseViewBindingActivity;
import com.snow.useviewdemo.databinding.ActivityOptFirstBinding;
import com.snow.useviewdemo.databinding.ActivityOptSecondBinding;
import com.snow.useviewdemo.util.HandlerHelper;

/**
 * Created by zhyt
 * Date: 2022/3/14gri
 * Describe:
 */
public class OPTSecondActivity extends BaseViewBindingActivity<ActivityOptSecondBinding> {
    @Override
    protected ActivityOptSecondBinding getViewBinding() {
        if (mBinding == null) {
            mBinding = ActivityOptSecondBinding.inflate(getLayoutInflater());
        }
        return mBinding;
    }

    @Override
    protected void onCreate(@Nullable @org.jetbrains.annotations.Nullable Bundle savedInstanceState) {
        overridePendingTransition(R.anim.activity_bottom_to_top, R.anim.anim_no);
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void onStart() {
        super.onStart();
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    public void finish() {
        super.finish();
        overridePendingTransition(R.anim.anim_no, R.anim.activity_top_to_bottom);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

    @Override
    protected void setViewData(Bundle savedInstanceState) {

    }
}
